package com.java2_7;

public class carInformation {

    private int index;
    private String name;

    public static int add(int x, int y) {
        return x + y;
    }

    public int mul(int x, int y) {
        return x * y;
    }

    public static void main(String[] args) {
        int ret = carInformation.add(2, 3);
        System.out.println(ret);
        System.out.println(add(4, 5));
        carInformation c = new carInformation();
        System.out.println(c.add(1, 1));

        //
        //System.out.println(carInformation.mul(1, 1));
        carInformation c1 = new carInformation();
        System.out.println(c1.mul(12, 3));
    }

    public carInformation() {

    }

    public carInformation(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
